package org.jeecg.modules.customer.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 客户表
 * @Author: jeecg-boot
 * @Date: 2021-07-15
 * @Version: V1.0
 */
@Data
@TableName("bus_customer")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "bus_customer对象", description = "客户表")
public class BusCustomer implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 客户姓名
     */
    @Excel(name = "客户姓名", width = 15)
    @ApiModelProperty(value = "客户姓名")
    private String cusName;
    /**
     * 客户电话
     */
    @Excel(name = "客户电话", width = 15)
    @ApiModelProperty(value = "客户电话")
    private String cusTel;
    /**
     * 电子邮箱
     */
    @Excel(name = "电子邮箱", width = 15)
    @ApiModelProperty(value = "电子邮箱")
    private String cusEmail;
    /**
     * 课题组
     */
    @Excel(name = "课题组", width = 15)
    @ApiModelProperty(value = "课题组")
    private String cusKtz;
    /**
     * 客户单位
     */
    @Excel(name = "客户单位", width = 15)
    @ApiModelProperty(value = "客户单位")
    private String cusCompany;
    /**
     * 客户地址
     */
    @Excel(name = "客户地址", width = 15)
    @ApiModelProperty(value = "客户地址")
    private String cusAddress;
    /**
     * 秘钥
     */
    @Excel(name = "秘钥", width = 15)
    @ApiModelProperty(value = "秘钥")
    private String token;
    /**
     * 头像url
     */
    @Excel(name = "头像url", width = 15)
    @ApiModelProperty(value = "头像url")
    private String avatarUrl;
    /**
     * 性别
     */
    @Excel(name = "性别", width = 15, dicCode = "sex")
    @Dict(dicCode = "sex")
    @ApiModelProperty(value = "性别")
    private Integer gender;
    /**
     * 国家
     */
    @Excel(name = "国家", width = 15)
    @ApiModelProperty(value = "国家")
    private String country;
    /**
     * 省
     */
    @Excel(name = "省", width = 15)
    @ApiModelProperty(value = "省")
    private String province;
    /**
     * 城市
     */
    @Excel(name = "城市", width = 15)
    @ApiModelProperty(value = "城市")
    private String city;
    /**
     * 微信openid
     */
    @Excel(name = "微信openid", width = 15)
    @ApiModelProperty(value = "微信openid")
    private String openId;
    /**
     * 小程序unionid
     */
    @Excel(name = "小程序unionid", width = 15)
    @ApiModelProperty(value = "小程序unionid")
    private String unionId;
    /**
     * 系统用户id
     */
    @Excel(name = "系统用户id", width = 15)
    @ApiModelProperty(value = "系统用户id")
    private String sysUserId;

    /**
     * 顶级管理员-99 部门管理员-98  非管理员（客户）-0
     */
    @Excel(name = "是否管理员", width = 15)
    @ApiModelProperty(value = "是否管理员")
    private Integer managerType;
}
